#include<stdio.h>
#include"array.h"
void sort(int a[], int n) {
	int i, j, k, t;
	for (i = 0; i < n - 1; i++) {
		for (k = i, j = i + 1; j < n; j++)
			if (a[j] < a[k])
				k = j;
		if (k - i)
			t = a[k], a[k] = a[i], a[i] = t;
	}
}
int main() {
	int a[] = { 5, 4, 1, 2, 9, 7, 8, 6, 0, 3 };
	int n = sizeof(a) / sizeof(a[0]);

	print(a, n);
	sort(a, n);
	print(a, n);

	return 0;

}
